package com.szf.util;

import java.util.Map;

import net.sf.json.JSONObject;

import com.szf.base.service.SpringContextHolder;
import com.szf.system.service.ParamService;

public class ParamServiceUtil {
	private static ParamService paramService;

	static {
		paramService = SpringContextHolder.getBean(ParamService.class);
	}

	public static Map<String, String> getComMap(String typeCode) {
		return paramService.getComMap(typeCode);
	}

	public static String getFormatMap(String typeCode) {
		String map = JSONObject.fromObject(getComMap(typeCode)).toString();
		return map;
	}

}
